import request from '@/utils/request'

// 查询塔板理论列表
export function listTdmLiLun(query) {
  return request({
    url: '/tdm/TdmLiLun/list',
    method: 'get',
    params: query
  })
}

// 查询塔板理论详细
export function getTdmLiLun(id) {
  return request({
    url: '/tdm/TdmLiLun/' + id,
    method: 'get'
  })
}

// 新增塔板理论
export function addTdmLiLun(data) {
  return request({
    url: '/tdm/TdmLiLun',
    method: 'post',
    data: data
  })
}

// 修改塔板理论
export function updateTdmLiLun(data) {
  return request({
    url: '/tdm/TdmLiLun',
    method: 'put',
    data: data
  })
}

// 删除塔板理论
export function delTdmLiLun(id) {
  return request({
    url: '/tdm/TdmLiLun/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
